package test4;

public class PetTest {
    public static void main(String[] args) {
        //创建狗对象
        Pet dog = new Dog("欧欧",100,6,"雪纳瑞");
        //创建企鹅对象
        Pet penguin = new Penguin("楠楠",100,5,"Q妹");
        //创建Owner对象
        Owner owner = new Owner();
        dog.show();//显示狗信息
        System.out.println("-----------------");
        penguin.show();//显示企鹅信息
    }
}
